﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Send.aspx.cs" Inherits="SampleListManager.Send" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Altairis Mail Toolkit List Manager Sample</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
    <form id="form1" runat="server">
    <h1>Altairis Mail Toolkit List Manager Sample</h1>
    <blockquote><strong>Note:</strong> In default configuration, mail messages are sent using pickup directory <code>C:\InetPub\MailRoot\pickup</code> from e-mail address <code>from@example.com</code>. This application uses SQL Server Express as database. You might want to change the values in <code>web.config</code> file.</blockquote>
    <div class="form">
        <asp:MultiView ID="MultiViewPage" runat="server" ActiveViewIndex="0">
            <asp:View ID="ViewForm" runat="server">
                <table>
                    <tr>
                        <th>
                            <asp:Label Text="List name:" runat="server" AssociatedControlID="ListName" />
                        </th>
                        <td>
                            <asp:DropDownList ID="ListName" runat="server" Width="500px" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label runat="server" Text="Subject:" AssociatedControlID="SubjectTextBox" />
                        </th>
                        <td>
                            <asp:TextBox ID="SubjectTextBox" runat="server" Width="500px" />
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="SubjectTextBox" Display="Dynamic" Text="*" ErrorMessage="Subject is missing" />
                        </td>
                    </tr>
                    <tr>
                        <th style="vertical-align: top">
                            <asp:Label runat="server" Text="Body:" AssociatedControlID="BodyTextBox" />
                        </th>
                        <td>
                            <asp:TextBox ID="BodyTextBox" runat="server" Width="500px" Height="300px" TextMode="MultiLine" />
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="BodyTextBox" Display="Dynamic" Text="*" ErrorMessage="Body is missing" />
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <asp:ValidationSummary runat="server" />
                            <asp:Button Text="Submit" runat="server" ID="ButtonSubmit" onclick="ButtonSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="ViewMessage" runat="server">
                <p>Message was sent.</p>
            </asp:View>
        </asp:MultiView>
    </div>
    <div class="footer">
        Copyright &copy; <a href="http://www.altairis.cz/">Altairis</a>, 2010-2011 | Find more info about Mail Toolkit at <a href="http://altairismailtoolkit.codeplex.com/">altairismailtoolkit.codeplex.com</a>
    </div>
    </form>
</body>
</html>
